import React from 'react'
import './index.scss'

export default class Map extends React.Component {
  render() {
    return (
      <div className="map-box">
        <div id="container"></div> 
      </div>
    )
  }

  componentDidMount() {
    const map = new window.BMap.Map("container")
    const point = new window.BMap.Point(116.404, 39.915)

    map.centerAndZoom(point, 15)
  }
}